<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var date = new Date()
        // console.log(date.getDate())
        // console.log(date.getFullYear())
        // console.log(date.getMonth())
        // console.log(date.getDay())
        // console.log(date.getHours())
        // console.log(date.getMinutes())
        // console.log(date.getSeconds())
        // console.log(date.toLocaleString())
        // console.log(date.toLocaleString('chinese',{hour12:false}))
        // console.log(date.toLocaleDateString())
        // console.log(date.toLocaleTimeString())

        setInterval(function(){
            var date = new Date()
            console.log(date.toLocaleString())
        },1000)
    </script>
</body>
</html>